package cn.getech.data.development.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *      sap数据源参数配置详情
 * </p>
 *
 * @author hqz
 * @since 2019-10-15
 */
@TableName("bdp_sap_connect_field")
@Slf4j
@Data
public class SapConnectField implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * sap连接参数配置id
     */
    private Integer id;

    /**
     * 数据源配置id
     */
    private Integer connectId;

    /**
     * rfc函数
     */
    private String rfcFunc;

    /**
     * 输入参数表名
     */
    private String inputTableName;

    /**
     * 输出参数表名
     */
    private String outputTableName;

    private String inputParams;

    private String outputParams;

    /**
     * sap传参类型  1:单表单行模式   2:多表多行模式
     */
    @TableField(exist = false)
    private Integer paramType;

    /**
     * sap输入单表单行模式参数
     */
    @TableField(exist = false)
    private List<JSONObject> ainputParams;

    /**
     * sap输入多表多行模式参数
     */
    @TableField(exist = false)
    private String ainputMoreTableParams;

    /**
     * sap输出参数
     */
    @TableField(exist = false)
    private List<JSONObject> aoutputParams;

    /******es的数据源数据同步-start*********/
    @TableField(exist = false)
    private String esSqlCondition;//es的检索条件
    @TableField(exist = false)
    private String esIndex;//索引
    @TableField(exist = false)
    private String esIndexType;//索引类型
    @TableField(exist = false)
    private Long esPageSize;//分页大小
    @TableField(exist = false)
    private Long esPageTime;//单位s

    /******webservice支持raw-start*********/
    @TableField(exist = false)
    private Integer reqType;//1.xml 2.json
    @TableField(exist = false)
    private String webserviceText;//xml请求数据
    @TableField(exist = false)
    private Integer resType;//1.xml 2.json
    @TableField(exist = false)
    private String anaTableNameUrl;//xml解析表的路径，按照.的路径
    @TableField(exist = false)
    private Integer olderRequestType;// 1.GET   2.POST-urlencoded  3.POST-raw


    @TableField(exist = false)
    private Integer isGroup;

    private Integer isgroup;

    private String groupName;

    private String r3Name;

    private String sysnr;

    private String lang;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getConnectId() {
        return connectId;
    }

    public void setConnectId(Integer connectId) {
        this.connectId = connectId;
    }

    public String getRfcFunc() {
        return rfcFunc;
    }

    public void setRfcFunc(String rfcFunc) {
        this.rfcFunc = rfcFunc;
    }

    public String getInputTableName() {
        return inputTableName;
    }

    public void setInputTableName(String inputTableName) {
        this.inputTableName = inputTableName;
    }

    public String getOutputTableName() {
        return outputTableName;
    }

    public void setOutputTableName(String outputTableName) {
        this.outputTableName = outputTableName;
    }

    public String getInputParams() {
        return inputParams;
    }

    public void setInputParams(String inputParams) {
        this.inputParams = inputParams;
    }

    public String getOutputParams() {
        return outputParams;
    }

    public void setOutputParams(String outputParams) {
        this.outputParams = outputParams;
    }

    public List<JSONObject> getAinputParams() {
        return ainputParams;
    }

    public void setAinputParams(List<JSONObject> ainputParams) {
        this.ainputParams = ainputParams;
    }

    public List<JSONObject> getAoutputParams() {
        return aoutputParams;
    }

    public void setAoutputParams(List<JSONObject> aoutputParams) {
        this.aoutputParams = aoutputParams;
    }

    public Integer getIsGroup() {
        return isGroup;
    }

    public void setIsGroup(Integer isGroup) {
        this.isGroup = isGroup;
    }

    public Integer getIsgroup() {
        return isgroup;
    }

    public void setIsgroup(Integer isgroup) {
        this.isgroup = isgroup;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getR3Name() {
        return r3Name;
    }

    public void setR3Name(String r3Name) {
        this.r3Name = r3Name;
    }

    public String getSysnr() {
        return sysnr;
    }

    public void setSysnr(String sysnr) {
        this.sysnr = sysnr;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getEsSqlCondition() {
        return esSqlCondition;
    }

    public void setEsSqlCondition(String esSqlCondition) {
        this.esSqlCondition = esSqlCondition;
    }

    public String getEsIndex() {
        return esIndex;
    }

    public void setEsIndex(String esIndex) {
        this.esIndex = esIndex;
    }

    public String getEsIndexType() {
        return esIndexType;
    }

    public void setEsIndexType(String esIndexType) {
        this.esIndexType = esIndexType;
    }

    public Long getEsPageSize() {
        return esPageSize;
    }

    public void setEsPageSize(Long esPageSize) {
        this.esPageSize = esPageSize;
    }

    public Long getEsPageTime() {
        return esPageTime;
    }

    public void setEsPageTime(Long esPageTime) {
        this.esPageTime = esPageTime;
    }

    public Integer getReqType() {
        return reqType;
    }

    public void setReqType(Integer reqType) {
        this.reqType = reqType;
    }

    public String getWebserviceText() {
        return webserviceText;
    }

    public void setWebserviceText(String webserviceText) {
        this.webserviceText = webserviceText;
    }

    public Integer getResType() {
        return resType;
    }

    public void setResType(Integer resType) {
        this.resType = resType;
    }

    public String getAnaTableNameUrl() {
        return anaTableNameUrl;
    }

    public void setAnaTableNameUrl(String anaTableNameUrl) {
        this.anaTableNameUrl = anaTableNameUrl;
    }

    public Integer getOlderRequestType() {
        return olderRequestType;
    }

    public void setOlderRequestType(Integer olderRequestType) {
        this.olderRequestType = olderRequestType;
    }
}
